//
//  GetMusic_tv_cell.m
//  ainkjj
//
//  Created by MAX on 2020/5/13.
//  Copyright © 2020 zhiyiLiu. All rights reserved.
//

#import "GetMusic_tv_cell.h"

@implementation GetMusic_tv_cell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(GetMusicList *)model{
    _model = model;
    
    self.author_lb.text = model.author;
    self.title_lb.text = model.title;
    self.id_lb.text = @(model.index + 1).stringValue;

    
    if (model.isSelected) {
        self.id_lb.hidden = YES;
        self.music_list_play_iv.hidden = NO;
        self.title_lb.textColor = themeColor;
        
      
        
    }else{
        self.id_lb.hidden = NO;
        self.id_lb.hidden = NO;
        self.music_list_play_iv.hidden = YES;
        self.title_lb.textColor = [UIColor darkTextColor];
    }
}
@end
